package edu.whut.mall.user.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.util.Date;
/**
 * Author: smq
 * Unit: D9lab
 * Date: 2021-06-07 16:15
 */
@Data
@AllArgsConstructor
@Builder
public class Comment {
    @TableId(type = IdType.AUTO)
    private int id;
    private int orderTrade;
    private int user;
    private String name;
    private String orderNumber;
    private int product;
    private String content;
    private String score;
    private Date createTime;
    public Comment() {
        this.createTime = new Date();
    }
}
